package demo.run;

public class DemoThread extends Thread{
	String name;
	public DemoThread(String name){
		this.name = name;
	}
	@Override
	public void run() {
		System.out.println(name + " start");
		try {
			Thread.sleep(1500);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println(name + " end");
		super.run();
	}
}
